﻿/*
    This file is part of Lynsync

    Lynsync is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    Lynsync is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Lynsync; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

      created from Audolo Copyright 2006  M.Janzen (Xaltos)
 */

// The History is in the MainWindow.cs file

using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.IO;

namespace Lynsync
{
    static class Program
    {

        static void CheckInstallDir()
        {
            if (File.Exists("Lzma#.dll") == false)
            {
                MessageBox.Show("Warning: File lzma#.dll is missing! \n I can't unzip 7z files without this DLL.", "Lynsync", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }

//            if (File.Exists("nwn2.exe") == false)
//            {
//                MessageBox.Show("Warning: I can't find nwn2.exe! \n This program should be installed inside of the main folder of NWN2!", "Lynsync", MessageBoxButtons.OK, MessageBoxIcon.Error);
//            }


        }

        /// <summary>
        /// The point of main entrance for application.
        /// Der Haupteinstiegspunkt für die Anwendung.
        /// </summary>
        [STAThread]
        static void Main()
        {
            CheckInstallDir();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Application.Run(new MainWindow());

            Properties.Settings.Default.Save();
        }
    }
}
